package cn.tedu.spring.beanxml;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestUserXml {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext
                ("bean.xml");
        UserXml userXml = context.getBean("userXml",UserXml.class);
        System.out.println(userXml);
    }
}
